import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Counter from '../components/index'
import * as CounterActions from '../actions/user'

function mapStateToProps(state) {
  return {
    user: state.user,
    users: state.users
  }
}

function mapDispatchToProps(dispatch) {
  return bindActionCreators(CounterActions, dispatch);
}

export default connect(mapStateToProps,mapDispatchToProps)(Counter)
